<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <span v-for="(item,index) in list" :key="index"> <input type="checkbox" v-model="item.isChecked">{{item.name}}
        </span>
        <ul>
            <li v-for="(item,index) in list" :key="index" v-show="item.isChecked">{{item.name}}</li>
        </ul>
    </div>

    <script src="./vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                list: [{ name: "科幻", isChecked: false }, { name: "喜剧", isChecked: false }, { name: "动漫", isChecked: false }, { name: "冒险", isChecked: false }, { name: "科技", isChecked: false }, { name: "军事", isChecked: false }, { name: "娱乐", isChecked: false }, { name: "奇闻", isChecked: false }],

            },
            methods: {

            }
        })
    </script>
</body>

</html>